<div class="titulo">
    <h3><?php echo $this->rowTipoServico->st_nome; ?></h3>

    <span><?php echo $this->rowCliente->st_nome; ?></span>
</div>
        <div class="accordion">
            <h3><a>Tarefas (<?php echo count($this->rowSetTarefas); ?>)</a></h3>
            <div>
                <a class="ev-dialog-form"
                   href="<?php echo $this->baseUrl(); ?>/tarefa/tarefa/adicionar/fk_cliente/<?php echo $this->row->fk_cliente; ?>/fk_servico/<?php echo $this->row->id_servico; ?>"
                   target="#app-div-artefatos"
                   urlAfterComplete="<?php echo $this->baseUrl(); ?>/corporativo/artefato/listar/fk_cliente/<?php echo $this->row->fk_cliente; ?>/fk_servico/<?php echo $this->row->id_servico; ?>"
                   >Nova tarefa
                   </a>

                <div id="app-div-artefatos">
                <?php echo $this->action('listar', 'tarefa', 'tarefa', array('fk_cliente' => $this->row->fk_cliente, 'fk_servico' => $this->row->id_servico)); ?>
                </div>
            </div>

            <h3><a>Anotações (<?php echo count($this->rowSetAnotacoes); ?>)</a></h3>
            <div>
                <table>
                    <thead>
                        <tr>
                            <th scope="col">Data</th>
                            <th scope="col">Duração</th>
                            <th scope="col">Usuário</th>
                            <th scope="col">Anotação</th>
                        </tr>
                    </thead>
                    <tbody>
                     <?php
                        $i = 0;
                        foreach ($this->rowSetAnotacoes as $rowAnotacao) :
                            $class = ($i++ % 2 == 0) ? 'class="cor"' : '';
                        ?>
                        <tr <?php echo $class; ?>>
                            <td>12/02/2011</td>
                            <td>1:27:10</td>
                            <td>Cristiano Teles</td>
                            <td>Nada pra anotar</td>
                        </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
<?php /*
            <h3><a>Participantes</a></h3>
            <div>
                <table>
                    <thead>
                        <tr>
                            <th scope="col">Data</th>
                            <th scope="col">Duração</th>
                            <th scope="col">Usuário</th>
                            <th scope="col">Anotação</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>12/02/2011</td>
                            <td>1:27:10</td>
                            <td>Cristiano Teles</td>
                            <td>Nada pra anotar</td>
                        </tr>
                        <tr class="cor">
                            <td>12/02/2011</td>
                            <td>1:27:10</td>
                            <td>Cristiano Teles</td>
                            <td>Nada pra anotar</td>
                        </tr>
                        <tr>
                            <td>12/02/2011</td>
                            <td>1:27:10</td>
                            <td>Cristiano Teles</td>
                            <td>Nada pra anotar</td>
                        </tr>
                    </tbody>
                </table>
            </div>
*/ ?>
            <?php echo $this->action('listar', 'artefato', 'corporativo', array('fk_cliente' => $this->row->fk_cliente, 'fk_servico' => $this->row->id_servico)); ?>
        </div>